﻿using Framework.EncryptionDecryptionService.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.EncryptionDecryptionService.Attributes
{
    /// <summary>
    /// 加密算法特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class EncryptionAttribute : Attribute
    {
        /// <summary>
        /// 加密算法特性
        /// </summary>
        /// <param name="encryptionType">加密算法</param>
        public EncryptionAttribute(EncryptionAlgorithm encryptionType)
        {
            EncryptionType = encryptionType;
        }
        /// <summary>
        /// 加密算法
        /// </summary>
        public EncryptionAlgorithm EncryptionType { get; set; }
    }
}
